<template>
  <div class="cash-contai">
    <!-- 查询部分 -->
    <CashSales :getDataList="newList" :newCount="count"></CashSales>
    <!-- 表格区域 -->
    <CashDetaildata @getCashList="getNewMethod(arguments)"></CashDetaildata>
  </div>
</template>

<script>
//导入需要的组件
import CashSales from '../../components/zcs/Cash/CashSales.vue'
import CashDetaildata from '../../components/zcs/Cash/CashDetaildata.vue'

export default {
  data() {
    return {
      newList: [],
      count: 0
    }
  },
  methods: {
    //获得子组件的传值
    getNewMethod(val) {
      this.newList = val[0]
      this.count = val[1]
      // console.log(this.newList)
      // console.log(this.count)
    }
  },
  components: {
    CashSales,
    CashDetaildata
  }
}
</script>

<style lang="less" scoped>
</style>